<{include file="../common/iframe_head.tpl"}>
        <{if $list}>
        <table  class="gridtable table table-bordered"> 
        <tr><th>文件名</th><th>创建时间</th><th>操作</th></tr>
        <{foreach $list as $key => $val}>
        <tr  id="qba_<{$val.qba_id}>">
            <td><{$val.filename}></td>
            <td><{$val.create_time}> </td>
            <td>
                <a href="<{$val.fileurl}>" target="_blank">下载</a>
                <{if $level==4}><a href="javascript:;" onclick="del(<{$val.qba_id}>);">删除</a><{/if}>
            </td>
        </tr>
        <{/foreach}>
        </table>
        <{/if}>
<script>
//删除
function del(qba_id){
    if (confirm('确定删除')) {
        $.getJSON('/benchmark/DelBenchAttach',{qba_id:qba_id},function(res){
            alert(res.note);
            if (res.status==1) {
                window.parent.location.reload();
            }
            
        });    
    }

}
</script>
<{include file="../common/footer.tpl"}>